package com.sky.mapper;

import com.sky.entity.ShoppingCart;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ShoppingCartMapper {

//条件查询
    List<ShoppingCart> list(ShoppingCart shoppingCart);

    //更新商品数量
    void updateById(ShoppingCart shoppingCart);

    //插入购物车数据
    void insert(ShoppingCart shoppingCart);

    //清空购物车
    void clean(Long id);
}
